#define TEST_INSERT
#ifdef  TEST_INSERT

#include <iostream>
#include "insert.h"

int main(void)
{
	struct{
		bool				b;
		float				f;
		double				d;
		long double			ld;
		signed char			c;
		signed short		s;
		signed int			i;
		signed long			l;
		signed long long	ll;
		unsigned char		uc;
		unsigned short		us;
		unsigned int		ui;
		unsigned long		ul;
		unsigned long long	ull;
	}t = {true, 6.666666, 7.7777777, 8.88888888888888, 1, 2, 3, 4, 5, 8, 9, 10, 11, 12};

	cout << (Insert("tableA") << true << "name").data() << endl;

	Insert insert("test"); 

	insert	<< t.b
			<< t.c
			<< t.s
			<< t.i
			<< t.l
			<< t.ll
			<< t.f
			<< t.d
			<< t.ld
			<< t.uc
			<< t.us
			<< t.ui
			<< t.ul
			<< t.ull
			<< "this is a structure";

	cout << insert.values() << endl;

	insert.clear();

	insert	>> "bool"				<< t.b
			>> "char"				<< t.c
			>> "short"				<< t.s
			>> "int"				<< t.i
			>> "long"				<< t.l
			>> "long_long"			<< t.ll
			>> "float"				<< t.f
			>> "double"				<< t.d
			>> "long_double" 		<< t.ld
			>> "type" 				<< "unsigned"
			>> "unsigned_char" 		<< t.uc
			>> "unsigned_short" 	<< t.us
			>> "unsigned_int" 		<< t.ui
			>> "unsigned_long" 		<< t.ul
			>> "unsigned_long_long" << t.ull
			>> "info" 				<< "no more data"
			>> "null_value" 		<< NULL;

	cout << insert.values() << endl;
	cout << insert.data() << endl;

	return 0;
}

#endif//TEST_INSERT
